package com.atguigu.edu.feign.impl;

import com.atguigu.edu.feign.OrderClient;
import com.atguigu.servicebase.exceptionhandler.GuliException;
import org.springframework.stereotype.Component;

//熔断方法
@Component
public class OrderClientImpl implements OrderClient {
    @Override
    public Boolean isBuyCourse(String courseId, String memberId) {
        throw new GuliException(20001, "查询课程是否购买出错了！");
    }
}
